﻿$(function () {
    $("#div2 ul li a").click(function () {
        $(this).attr("class","touBu").parent().siblings().children().removeClass("touBu");
        $(this).parent().attr("class","touBu1").siblings().removeClass("touBu1");
    });

    $("#head1").click(function () {
        var head1Html = "<ul>\n" +
            "        <li class=\"\"><a href=\"/ak47\" class=\"\" target=\"mainFrame\">关键词申请</a></li>\n" +
            "        <li class=\"\"><a href=\"/asCustoms\" class=\"\"\n" +
            "                            target=\"mainFrame\">代理商客户管理</a></li>\n" +
            "        <li class=\"\"><a href=\"/agentPrepayment\" class=\"\" target=\"mainFrame\">代理商预付款</a></li>\n" +
            "        <li class=\"\"><a href=\"/keyWordMan\" class=\"\" target=\"mainFrame\">关键词申请管理</a></li>\n" +
            "        <li class=\"\"><a href=\"/log\" class=\"\" target=\"mainFrame\">操作日志</a></li>\n" +
            "      </ul>";

        $("#div3 ul").remove();
        $("#div3").html(head1Html)
    });

    $("#head2").click(function () {
        var head2Html = "   <ul>\n" +
            "        <li class=''><a href='/portalZiLianJie' class='' target='mainFrame' style='margin-left:120px'>门户管理</a></li>\n" +
            "      </ul>";

        $("#div3 ul").remove();
        $("#div3").html(head2Html);
    });

    $("#head3").click(function () {
        var head3Html = "   <ul>\n" +
            "        <li class=\"\"><a href=\"/ak48\" class=\"\" target=\"mainFrame\" style=\"margin-left:240px\">报表管理</a></li>\n" +
            "      </ul>";

        $("#div3 ul").remove();
        $("#div3").html(head3Html);
    });

    $("#head4").click(function () {
        var head4Html = "<ul style=\"margin-left:130px\">\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">财务管理</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">角色管理</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">角色权限配置</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">用户管理</a></li>\n" +
            "        <li class=\"\"><a href=\"goDeywordAudit\" class=\"\" target=\"mainFrame\">关键词审核</a></li>\n" +
            "      </ul>";

        $("#div3 ul").remove();
        $("#div3").html(head4Html);
    });

    $("#head5").click(function () {
        var head5Html = "<ul style=\"margin-left:60px\">\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">财务类型</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">服务类型</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">服务年限</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">APP地址</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">客户类型</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">证件类型</a></li>\n" +
            "        <li class=\"\"><a href=\"#\" class=\"\" target=\"_parent\">优惠类型</a></li>\n" +
            "      </ul>";
        $("#div3 ul").remove();
        $("#div3").html(head5Html);
    })

});